package com.xungou.good.service;

import com.xungou.core.mvc.IService;
import com.xungou.good.pojo.Good;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface IGoodService extends IService<Good> {

    Integer getMaxId(Integer type);

    Map<String,Object> add(MultipartFile file, Good good, Map<String, String> params);

    List<Good> list(Map<String, String> params);

    Map<String, Object> search(Map<String, Object> params);

    Map<String,Object> getGoodMessage(Map<String, String> params);

    Integer getCommentCountByGoodId(Map<String, Object> params);

    Integer getGoodCommentCountByGoodId(Map<String, Object> good);

    Float getAverageScoreByGoodId(Map<String, Object> good);
}